//
//  XJAddressModel.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/5/22.
//  Copyright © 2018年 Tzyang. All rights reserved.
//  地址模型

#import "XJAddressModel.h"

@implementation XJAddressModel

///**1.姓名*/
//@property (nonatomic, copy) NSString *name;
///**2.手机号*/
//@property (nonatomic, copy) NSString *phone;
///**3.地址*/
//@property (nonatomic, copy) NSString *address;
//
///**5.地址id 删除地址时传递的参数*/
//@property (nonatomic, copy) NSString *districtId;
///**4.(自定义)是否是默认地址,只有一个可以被选中*/
//@property (nonatomic, assign) BOOL isDefault;
- (NSString *)description {
    NSArray *ptyArr = @[@"name",@"phone",@"address",@"addressId",@"isDefault"];
    
    return [self dictionaryWithValuesForKeys:ptyArr].description;
}



+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    // 前面是我的 后面是服务器返回的
    return @{@"addressId":@"id",@"isDefault":@"status"};
    
}
@end
